package com.cg.service.impl;

import com.cg.entity.Demo;
import com.cg.service.DemoService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author cheyinbo
 * @date 2021-04-06 18:15:54
 */
@Service
public class DemoServiceImpl implements DemoService {

    public List<Demo> findList() {
        List<Demo> demos = new ArrayList<Demo>();
        Demo demo = new Demo();
        demo.setId(1L).setUsername("che").setPassword("123");
        Demo demo02 = new Demo();
        demo02.setId(2L).setUsername("cheche").setPassword("456");
        demos.add(demo);
        demos.add(demo02);
        return demos;
    }
}
